﻿namespace ZR.Model.mes.md
{
 /// <summary>
 /// 计量单位
 ///</summary>
 [SugarTable("md_unit")]
 public class MdUnit
 {
  /// <summary>
  /// 单位ID 
  ///</summary>
  [SugarColumn(ColumnName = "measure_id", IsPrimaryKey = true, IsIdentity = true)]
  public int? MeasureId { get; set; }

  /// <summary>
  /// 单位编码 
  ///</summary>
  [SugarColumn(ColumnName = "measure_code")]
  public string MeasureCode { get; set; }

  /// <summary>
  /// 单位名称 
  ///</summary>
  [SugarColumn(ColumnName = "measure_name")]
  public string MeasureName { get; set; }

  /// <summary>
  /// 是否启用（不启用N，启用Y） 
  ///</summary>
  [SugarColumn(ColumnName = "enable_flag")]
  public char  EnableFlag { get; set; }

  /// <summary>
  /// 备注 
  ///</summary>
  [SugarColumn(ColumnName = "remark")]
  public string Remark { get; set; }

  /// <summary>
  /// 预留字段 
  ///</summary>
  [SugarColumn(ColumnName = "attr1")]
  public string Attr1 { get; set; }

  /// <summary>
  /// 预留字段 
  ///</summary>
  [SugarColumn(ColumnName = "attr2")]
  public string Attr2 { get; set; }

  /// <summary>
  /// 预留字段 
  ///</summary>
  [SugarColumn(ColumnName = "attr3")]
  public int? Attr3 { get; set; }

  /// <summary>
  /// 预留字段 
  ///</summary>
  [SugarColumn(ColumnName = "attr4")]
  public string Attr4 { get; set; }

  /// <summary>
  /// 租户号 
  ///</summary>
  [SugarColumn(ColumnName = "TENANT_ID")]
  public string TenantId { get; set; }

  /// <summary>
  /// 乐观锁 
  ///</summary>
  [SugarColumn(ColumnName = "REVISION")]
  public int? Revision { get; set; }

  /// <summary>
  /// 创建人 
  ///</summary>
  [SugarColumn(ColumnName = "CREATED_BY")]
  public string CreatedBy { get; set; }

  /// <summary>
  /// 创建时间 
  ///</summary>
  [SugarColumn(ColumnName = "CREATED_TIME")]
  public DateTime? CreatedTime { get; set; }

  /// <summary>
  /// 更新人 
  ///</summary>
  [SugarColumn(ColumnName = "UPDATED_BY")]
  public string UpdatedBy { get; set; }

  /// <summary>
  /// 更新时间 
  ///</summary>
  [SugarColumn(ColumnName = "UPDATED_TIME")]
  public DateTime? UpdatedTime { get; set; }

        public bool Contains()
        {
            throw new NotImplementedException();
        }
    }
}

